<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="./../common/taglibs.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>Insert title here</title>
		<link rel="stylesheet" href="${ctx}/css/common.css">
<script type="text/javascript">
//得到焦点时触发事件
function OnFocusFun(element,elementvalue)
{
    if(element.value==elementvalue)
    {
        element.value="";
        element.style.color="#000";
    }
}
//离开输入框时触发事件
function OnBlurFun(element,elementvalue)
{
    if(element.value==""||element.value.replace(/\s/g,"")=="")
    {
        element.value=elementvalue;    
        element.style.color="#999";
    }
}
function check(form)
			{	
				if(form.searchTag.value == "")
				{
					alert("关键字不能为空！");
					form.searchTag.focus();
					return false;
				}	
				form.submit.disabled = true;
			}
</script>


	</head>
	<DIV class=nav>
		<DIV id=logo>
			<A href="index.jsp"><IMG src="image/pub3.png"> </A>
		</DIV>
		<DIV class=search>
			<!--输入框开始 -->
<s:form id="productForm" action="findGoodsFromSearchAction" method="post"
									enctype="multipart/form-data" onsubmit="return check(this);">
				<DIV class=s1>
					<B class=b1>&nbsp;</B>
					<input class=btn_search
						type="submit"
						name="submit" value="搜索" />
					<SELECT id=search_type name="selltype">
						<OPTION selected value=0>
							转让
						</OPTION>
						<OPTION value=1>
							求购
						</OPTION>
					</SELECT>
					<DIV class=search_left>
						<INPUT  type="text" value="想找什么？输入类别或关键字试试" id=search_keyword
							class="f_c_gray2 txt_search_gray txt_search" style="color:#999" 
							onfocus="OnFocusFun(this,'想找什么？输入类别或关键字试试')"
							onblur="OnBlurFun(this,'想找什么？输入类别或关键字试试')" name="searchTag" >
					</DIV>
				</DIV>
</s:form>
			<!--输入框结束 -->
		</DIV>
		<DIV class=btn>
			<A class=pub_btn href="<s:url action="goChooseTypeAction"></s:url>"
				target=_blank>免费发布信息</A>
		</DIV>
	</DIV>
</html>